﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
using OrbitOne.Elmah.Logic;

namespace OrbitOne.Elmah.Presenter
{
    public class AgentList : UserControl
    {
        #region Controls
        protected Repeater rptAgents; 
        #endregion
        
        protected override void OnInit(System.EventArgs e)
        {
            base.OnInit(e);
            var service = new AgentService();
            var agents = service.GetAllAgents(null, null);
            
            rptAgents.DataSource = agents;
            rptAgents.DataBind();
        } 
    }
}
